package cn.yitun.chat.yitunserverimbase.dao.contact;

import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudDao;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.contact.ContactCategoryDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactCategoryInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactCategoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 好友分组信息
 * @author chenyitun
 * @email chenyitun@163.com
 * @date 2020-06-21 21:52:52
 */
@Mapper
public interface ContactCategoryDao extends CrudDao<ContactCategoryDto, ContactCategoryInfo, ContactCategoryVo> {

	int absDel(Long id);

	int batchAbsDel(Long[] ids);

	/**
	 * 用户分类id
	 * @param userId
	 * @return
	 */
    ContactCategoryVo getVOByUserId(@Param("userId") Long userId);

	/**
	 * 排序
	 * @param id
	 * @param temp 排序
	 * @return
	 */
    int updateRank(Long id, int temp);
}
